package org.sixtythousand.joker;

import org.sixtythousand.joker.util.Callback;
import org.sixtythousand.joker.util.LifeCycle;

import java.io.Closeable;
import java.util.concurrent.Executor;

/**
 * 管理连接
 * @author zhoulk
 * @date 2023/10/11 10:06
 * @desc
 */
public interface Connection extends LifeCycle, Closeable {

    JChannel getChannel();

    Executor getExecutor();

    void read( );

    Callback newChannelCallback();
}
